import { uiwu } from '@/config/config';
/**
 * prizelist 奖品列表
 */
export const prizelist = async (data:object) : Promise<any> => {
	return await uiwu.get({
		url:`grab_prize/list`,
		data
	})
}

/**
 * 申请发货确认订单 grab_prize/redeem/confirm
 */
export const prizeConfirm = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/redeem/confirm`,
		data
	})
}
/**
 * 积分兑换确认列表 grab_prize/redeem/list
 */
export const redeemlist = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/redeem/list`,
		data
	})
}
/**
 * 确认兑换积分 grab_prize/redeem/integral
 */
export const redeemIntegral = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/redeem/integral`,
		data
	})
}
/**
 * prizeConfirmOrder 提交订单 grab_prize/redeem/order
 */
export const prizeConfirmOrder = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/redeem/order`,
		data
	})
}
/**
 *  中奖记录详情  grab_prize/info/
 */
export const prizeinfo = async (id:string|number) : Promise<any> => {
	return await uiwu.get({
		url:`grab_prize/info/${id}`,
	})
}
/**
 * 确认收货 grab_prize/receipt
 */
export const prizeReceipt = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/receipt`,
		data
	})
}
/**
 * 申请售后 grab_prize/apply/refund
 */
export const prizeRefund = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/apply/refund`,
		data
	})
}
/**
 * 奖品售后列表 grab_prize/refund/list
 */
export const refundlist = async (data:object) : Promise<any> => {
	return await uiwu.get({
		url:`grab_prize/refund/list`,
		data
	})
}
/**
 * 积分商品售后列表 integral_order/refund/list
 */
export const integralRefundlist = async (data:object) : Promise<any> => {
	return await uiwu.get({
		url:`integral_order/refund/list`,
		data
	})
}
/**
 * 提交积分售后物流 integral_order/refund
 */
export const integralOrderRefund = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`integral_order/refund`,
		data
	})
}
/**
 * 提交游戏奖品售后物流 integral_order/refund
 */
export const grabPrizeRefund = async (data:object) : Promise<any> => {
	return await uiwu.post({
		url:`grab_prize/refund`,
		data
	})
}
/**
 * 获取物流公司列表 express
 */
export const expresslist = async () : Promise<any> => {
	return await uiwu.get({
		url:`express`
	})
}
